#!/usr/bin/env python
# coding: UTF-8
#filename: D:/workspace/python/demo/mybatishandler/Command.py

'''
Created on 2013-7-15 上午11:23:59

@author: zhanghu
'''

'''
-ac:i,d,u,s
-id:
-sql:
rt:
rm:
'''

def acceptCommand():
    #getopt
    command = str(raw_input('please input command:'))
    command = "example: -ac=i -id='testExmapl' -sql=s:Id, OrderId"
    # TODO checkcommand valid
    if command is None or len(command.strip()) == 0:
        print 'please input command!!!'
        
    acIndex = command.index('-ac')
    command[acIndex + 3]
    

if __name__ == '__main__':
    pass
